<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateQualityDetailsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('quality_details', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('quality');
			$table->integer('status')->default(-1);
			$table->text('reject_desc')->nullable();
			$table->string('quantity')->nullable();
			$table->text('required_desc')->nullable();
			$table->text('root_cause')->nullable();
			$table->text('containment_action')->nullable();
			$table->text('supplier_short_term_corrective_act')->nullable();
			$table->dateTime('shot_term_implementation_date')->nullable();
			$table->integer('short_term_verified')->nullable();
			$table->text('supplier_long_term_corrective_act')->nullable();
			$table->dateTime('long_term_implementation_date')->nullable();
			$table->string('vendor_process_audit_plan_revision')->nullable();
			$table->integer('long_term_verified')->nullable();
			$table->timestamps();
			$table->softDeletes();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('quality_details');
	}

}
